home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
bbs
/
mxu_v152.zip
/
MAXLIST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1997-06-01
|
4KB
|
116 lines
{
───────────────────────────────────────────────────────────────────────────────
▀▀▀ ▀▀▀ ▀▀▀▀▀ ▀▀ ▀▀
▀▀▀▀ ▀▀▀▀ ▀▀ ▀▀ ▀▀ ▀▀
▀▀ ▀▀▀ ▀▀ ▀▀▀▀▀▀▀ ▀▀▀ ╔══ ╦═╗ ╔═╗ ╦═╗ ╦ ╦ ╦ ╔═╗ ╔═╗
▀▀ ▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ║ ╦ ╠╦╝ ╠═╣ ╠═╝ ╠═╣ ║ ║ ╚═╗
▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ╚═╝ ╩╚═ ╩ ╩ ╩ ╩ ╩ ╩ ╚═╝ ╚═╝
───────────────────────────────────────────────────────────────────────────────
The Universal Multimedia Interface For BBS Software
Copyright 1995-Current * Larry L. Athey * BBS Utiliteez Software
───────────────────────────────────────────────────────────────────────────────
Information Regarding MAX Graphics:
───────────────────────────────────
Notice is hereby given that the MAXscript/MAXcontrol/MAXcolor language,
and MAXterm are products of BBS Utiliteez Software and are protected by
US copyrights listed with the US Library Of Congress (1996)....
No changes, additions, subtractions, or other modifications shall be made
to MAXscript/MAXcontrol/MAXcolor language or the MAX Graphics development
kit without express written permission from Larry L. Athey, BBS Utiliteez
Software, Alliance, Nebraska, USA....
The MAXscript/MAXcontrol/MAXcolor language may be used in any BBS or Door
software 100% royalty free. You are also allowed to implement full local
graphics viewing in any BBS or Door software 100% royalty free. However,
any program that uses the MAXscript/MAXcontrol/MAXcolor language *MUST*
bear the MAX Graphics/BBS Utiliteez Software copyright notice....
Example: MAX Graphics and the MAXscript/MAXcontrol/MAXcolor language is
(C) 1995-Current * Larry L. Athey * BBS Utiliteez Software
─────────────────────────────────────────────────────────────────────────────── }
{$A+,B-,D+,E+,F+,G+,I-,L+,N-,O+,P-,Q-,R-,S-,T-,V+,X+}
PROGRAM MAXLIST;
USES CRT,DOS,TDK_VARS,DOORKIT2,DOORKIT3,CRCUNIT;
VAR
DirInfo : SEARCHREC;
TheDir : STRING;
HomeDir : STRING;
TheFile : STRING[12];
TheCrc : STRING[8];
Ch : CHAR;
PROCEDURE ShowHelp;
BEGIN
WINDOW(1,1,80,25);
ShowProgramAd;
WRITELN;
WRITELN;
IceText('Usage: MAXLIST.EXE [Path To Files To Process]',TRUE);
WRITE(^G);
GOTOXY(1,24); AnyKey;
ErrLevel := 6;
HALT(ErrLevel);
END;
PROCEDURE StartUp;
BEGIN
ShowProgramAd;
WINDOW(1,6,80,25);
TextAttr := 7;
CLRSCR;
END;
PROCEDURE AddFile(FName,Crc : STRING);
VAR
Txt : TEXT;
BEGIN
ASSIGN(Txt,'RESOURCE.LST');
IF NOT FExist('RESOURCE.LST') THEN BEGIN
REWRITE(Txt);
CLOSE(Txt);
END;
APPEND(Txt);
WRITELN(Txt,FName + ' ' + Crc);
CLOSE(Txt);
END;
BEGIN
ProgramName := 'MAXLIST.EXE v1.10';
ProgramDesc := 'MAXupdate RESOURCE.LST File Creation Utility';
GETDIR(0,HomeDir);
TheDir := AllCaps(NoPath(PARAMSTR(1)));
IF (NOT DExist(TheDir)) OR (TheDir = '') THEN ShowHelp;
StartUp;
CHDIR(TheDir);
FErase('RESOURCE.LST');
FINDFIRST('*.*',Anyfile - Directory - VolumeID,DirInfo);
WHILE DOSERROR = 0 DO BEGIN
TheFile := AllCaps(DirInfo.Name);
IF (TheFile <> 'RESOURCE.LST') AND
(TheFile <> 'ICON_LIB.001') AND
(TheFile <> 'ICON_LIB.002') AND
(TheFile <> 'ICON_LIB.003') THEN BEGIN
TheCrc := AllCaps(FileToCrc(TheFile));
TEXTCOLOR(11); WRITE('File: ');
TEXTCOLOR(14); WRITE(PadRight(TheFile,' ',15));
TEXTCOLOR(11); WRITE('CRC32 Value: ');
TEXTCOLOR(10); WRITE(PadRight(TheCrc,' ',15));
IceText('Add This File? [Y/N]',FALSE);
REPEAT Ch := UPCASE(READKEY) UNTIL Ch IN [#13,'Y','N'];
IF Ch = #13 THEN Ch := 'Y';
IceText(' ' + Ch,TRUE);
IF Ch = 'Y' THEN AddFile(TheFile,TheCrc);
END;
FINDNEXT(DirInfo);
END;
CHDIR(HomeDir);
WINDOW(1,1,80,25);
TextAttr := 7;
END.